package com.storage.control.system
{
	import com.firemoss.modelglue.controller.ModelGlueController;
	import com.firemoss.modelglue.event.ModelGlueEvent;
	import com.storage.model.AppModelLocator;
	import com.storage.vo.system.RoleVO;
	
	import mx.controls.Alert;

	public class RoleController extends ModelGlueController
	{
		private var model:AppModelLocator = AppModelLocator.getInstance();
		public var role:RoleVO = new RoleVO();
	
		public function operate(e:ModelGlueEvent):void{
			var act:String = e.getValue("act");
			switch(act){
				case "add":
					add(e);
					break;
				case "update":
					update(e);
					break;
				case "delete":
					del(e);
					break;
				default : null;
			}
		}
		
		private function add(e:ModelGlueEvent):void{
			Alert.show(role.roleCode + "add role --uncompleted");
		}
		private function update(e:ModelGlueEvent):void{
			Alert.show(role.roleCode + "update role  -- uncompleted");
		}
		private function del(e:ModelGlueEvent):void{
			Alert.show(role.roleCode + "delete role  -- uncompleted");
		}
		
	}
}